package com.ze.model;

import java.io.Serializable;
import java.util.ArrayList;



@SuppressWarnings("serial")
public class PhotoModel extends DataModel implements Serializable{
	
	// photo动态的唯一标识
//	public String 			id;
	// 发布人
	public String 		name;
	// time
	public String 		time;
	// topic
	public String 		tagname;
	public String 		tagid;
	//	image
	public ArrayList<PicInfo> 		photos;
	public ArrayList<CommentInfo> comments;
	// say
	public String 		say;
	public int 			height;
	public int 			width;
	
	public String soundurl;
	public String soundFileName;
	public String pic;
	public String subject;
	public String message;
	public String soundtime;
	
	//public Bitmap rececle;
	public boolean pushnoread = false;
	public boolean loveBtn = false;
	public boolean delete = false;
	
	public PhotoModel() {
		// TODO Auto-generated constructor stub
		photos = new ArrayList<PicInfo>();
		comments = new ArrayList<CommentInfo>();
		soundurl = "";
		soundFileName = "";
	}
	public static  class  PicInfo implements Serializable
	{
		public PicInfo() {
			// TODO Auto-generated constructor stub
		}
		public PicInfo(String  url, int width, int height) {
			// TODO Auto-generated constructor stub
			this.url = url;
			this.width = width;
			this.height = height;
		}
		public 	int 			height;
		public 	int 			width;
		public String 		url;
		
	}
	public ArrayList<PicInfo> getPhotos() {
		return photos;
	}
	public void setPhotos(ArrayList<PicInfo> photos) {
		this.photos = photos;
	}
	public static class CommentInfo implements Serializable{
		public String authorname;
		public String message;
		public String dateline;
		public String soundurl;
		public String soundfile;
		public String soundtime;
		public CommentInfo() {
			authorname = "";
			message = "";
			dateline = "";
			soundtime = "";
			soundurl = "";
			soundfile = "";
		}
	}
}
